﻿namespace HRM.CORE
{
    using APP.HELPER.Utils.Language;
    using DevExpress.XtraEditors;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms; using Common;

    public class xfmContract : XtraForm
    {
        private IContainer components = null;

        public xfmContract()
        {
            this.InitializeComponent();
            this.Text = MultiLanguages.GetString("tbl_Contract", "LaborContract", this.Text);
            base.Load += new EventHandler(this.xfmContract_Load);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            base.SuspendLayout();
            base.AutoScaleDimensions = new SizeF(6f, 13f);
//            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x32b, 0x231);
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "xfmContract";
            base.ShowIcon = false;
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "Hợp Đồng Lao Động";
            base.ResumeLayout(false);
        }

        private void xfmContract_Load(object sender, EventArgs e)
        {
            xucContract contract = new xucContract();
            contract.Closed += new xucContract.ClosedHander(this.xucContract_Closed);
            contract.Dock = DockStyle.Fill;
            base.Controls.Add(contract);
        }

        private void xucContract_Closed(object sender)
        {
            base.Close();
        }
    }
}

